/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using iMES.Entity.SystemModels;

namespace iMES.Entity.DomainModels
{
    [Entity(TableCnName = "出货检验单", TableName = "Mass_OutIns", DetailTable = new Type[] { typeof(Mass_OutIns_Detltems) }, DetailTableCnName = "出货检验单-检验项", DBServer = "SysDbContext")]
    public partial class Mass_OutIns : SysEntity
    {
        /// <summary>
        ///出库检验单主键 Mass_OutIns_Detltems
        /// </summary>
        [Key]
        [Display(Name = "出库检验单主键")]
        [Column(TypeName = "int")]
        [Required(AllowEmptyStrings = false)]
        public int Mass_OutInspection_ID { get; set; }

        /// <summary>
        ///修改人编号
        /// </summary>
        [Display(Name = "修改人编号")]
        [Column(TypeName = "int")]
        public int? ModifyID { get; set; }

        /// <summary>
        ///创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Column(TypeName = "datetime")]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        ///创建人
        /// </summary>
        [Display(Name = "创建人")]
        [MaxLength(30)]
        [Column(TypeName = "nvarchar(30)")]
        public string Creator { get; set; }

        /// <summary>
        ///创建人编号
        /// </summary>
        [Display(Name = "创建人编号")]
        [Column(TypeName = "int")]
        public int? CreateID { get; set; }

        /// <summary>
        ///备注
        /// </summary>
        [Display(Name = "备注")]
        [MaxLength(1000)]
        [Column(TypeName = "nvarchar(1000)")]
        [Editable(true)]
        public string Mass_OutInspection_Remark { get; set; }

        /// <summary>
        ///检测结果
        /// </summary>
        [Display(Name = "检测结果")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        public string Mass_OutInspection_SpeResult { get; set; }

        /// <summary>
        ///检测日期
        /// </summary>
        [Display(Name = "检测日期")]
        [Column(TypeName = "date")]
        [Editable(true)]
        public DateTime? Mass_OutInspection_SpeDate { get; set; }

        /// <summary>
        ///出货日期
        /// </summary>
        [Display(Name = "出货日期")]
        [Column(TypeName = "date")]
        [Editable(true)]
        public DateTime? Mass_OutInspection_OutDate { get; set; }

        /// <summary>
        ///不合格数量
        /// </summary>
        [Display(Name = "不合格数量")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? Mass_OutInspection_DisNum { get; set; }

        /// <summary>
        ///检测数量
        /// </summary>
        [Display(Name = "检测数量")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? Mass_OutInspection_InspectionNum { get; set; }

        /// <summary>
        ///发货数量
        /// </summary>
        [Display(Name = "发货数量")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? Mass_OutInspection_ShippingNum { get; set; }

        /// <summary>
        ///规格型号
        /// </summary>
        [Display(Name = "规格型号")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string Mass_OutInspection_ProModel { get; set; }

        /// <summary>
        ///产品编码
        /// </summary>
        [Display(Name = "产品编码")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        public string Mass_OutInspection_ProCode { get; set; }

        /// <summary>
        ///产品名称
        /// </summary>
        [Display(Name = "产品名称")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string Mass_OutInspection_ProName { get; set; }

        /// <summary>
        ///产品
        /// </summary>
        [Display(Name = "产品")]
        [Column(TypeName = "int")]
        public int? Mass_OutInspection_ProID { get; set; }

        /// <summary>
        ///检验单编码
        /// </summary>
        [Display(Name = "检验单编码")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        public string Mass_OutInspection_Code { get; set; }

        /// <summary>
        ///检验单名称
        /// </summary>
        [Display(Name = "检验单名称")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string Mass_OutInspection_Name { get; set; }

        /// <summary>
        ///修改人
        /// </summary>
        [Display(Name = "修改人")]
        [MaxLength(30)]
        [Column(TypeName = "nvarchar(30)")]
        public string Modifier { get; set; }

        /// <summary>
        ///修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        [Column(TypeName = "datetime")]
        public DateTime? ModifyDate { get; set; }

        [Display(Name = "出货检验单-检验项")]
        [ForeignKey("Mass_OutInspection_ID")]
        public List<Mass_OutIns_Detltems> Mass_OutIns_Detltems { get; set; }
    }
}